package eteam.aps.systemservice.dal;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import eteam.aps.systeminterface.model.entity.StartInfoEntity;
import eteam.aps.systemservice.dal.mapper.StartInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StartInfoDal {

    @Autowired
    private StartInfoMapper startInfoMapper;


    /**
     * 根据流程单据Id获取StartInfoEntity实体类
     *
     * @param fFlowBillId
     * @return
     */
    public StartInfoEntity getStartInfoByFlowBillId(String fFlowBillId) {
        QueryWrapper<StartInfoEntity> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("FFlowBillId",fFlowBillId);
        StartInfoEntity startInfoEntity = startInfoMapper.selectOne(queryWrapper);
        return startInfoEntity;
    }
}
